package com.bdqn.t382.lx.service;

import com.bdqn.t382.lx.mapper.AnimalsMapper;
import com.bdqn.t382.lx.pojo.Animals;
import com.bdqn.t382.lx.pojo.BookManage;
import com.bdqn.t382.lx.pojo.Page;
import com.bdqn.t382.lx.pojo.SysUser;

import java.util.List;

public interface AnimalsService {
    //登录
    public SysUser getLogin(String account, String password);
    //总数
    public Long count();

    //分页
    public Page getPage(Integer pageNo, Integer pageSize, String ani_name);

    //查询所有动物信息
    public List<Animals> getAnimalsList();
    //添加动物信息
    public int insertAnimals(Animals animals);

    //删除动物信息
    public int deleteAnimals(int ani_id);

    //查看动物信息
    public Animals viewAnimals(int ani_id);

    //修改动物信息
    public int updateAnimals(Animals animals);

    //根据ID查询用户信息
    public SysUser getSysuserById(int id);
}
